home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_361_868 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-04  |  1.2 KB  |  71 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.level1._x > 30)
  3.    {
  4.       this._x = 700;
  5.    }
  6.    if(_root.level1._x < -1060)
  7.    {
  8.       this._x = 1000;
  9.       this._visible = false;
  10.    }
  11.    else
  12.    {
  13.       this._visible = true;
  14.    }
  15.    if(_root.levmoveR)
  16.    {
  17.       this._x -= 3;
  18.    }
  19.    if(_root.levmoveL)
  20.    {
  21.       this._x += 3;
  22.    }
  23.    if(_root.jumpR)
  24.    {
  25.       this._x -= 6;
  26.    }
  27.    if(_root.jumpL)
  28.    {
  29.       this._x += 6;
  30.    }
  31.    if(_root.notarget6)
  32.    {
  33.       this._x -= 6;
  34.    }
  35.    if(this._x < 550)
  36.    {
  37.       _root.b6i._visible = true;
  38.    }
  39.    if(this._x < _root.sheep._x + 80)
  40.    {
  41.       _root.hitarea6 = true;
  42.       _root.notarget6 = false;
  43.    }
  44.    if(this._x < _root.sheep._x)
  45.    {
  46.       gotoAndPlay(48);
  47.    }
  48.    if(this._x > _root.sheep._x + 120)
  49.    {
  50.       _root.hitarea6 = false;
  51.       _root.notarget6 = true;
  52.    }
  53.    if(_root.hitarea6)
  54.    {
  55.       if(_root.hit6)
  56.       {
  57.          if(_root.fishjump)
  58.          {
  59.             _root.hit6 = false;
  60.             _root.bot6life -= 1;
  61.             if(_root.highkick)
  62.             {
  63.                _root.bot6life -= 100;
  64.                _root.highkick = false;
  65.             }
  66.             gotoAndPlay(29);
  67.          }
  68.       }
  69.    }
  70. }
  71.